package a21_ObjectArray;

/**
 * @Author quan
 * @Description 朋友类
 * @Date 2023/2/3 23:36
 */
public class Friend {
    private String name;
    private int age;
    private String gender;
    private String habit;

    public Friend(){}
    public Friend(String name, int age, String gender, String habit)
    {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.habit = habit;
    }
    public void setName(String name){
        this.name = name;
    }
    public String getName(){
        return name;
    }
    public void setAge(int age){
        this.age = age;
    }
    public int getAge(){
        return age;
    }
    public void setGender(String gender){
        this.gender = gender;
    }
    public String getGender(){
        return gender;
    }
    public void setHabit(String habit){
        this.habit = habit;
    }
    public String getHabit(){
        return habit;
    }

}
